package com.qumoyugo.springframework.context.support;

import com.qumoyugo.springframework.beans.BeansException;

/**
 * @author Cedric
 * @date 2021/11/24 15:05
 * @description 应用上下文实现类
 */
public class ClasspathXmlApplicationContext extends AbstractXmlApplicationContext {

    private String[] configLocations;

    public ClasspathXmlApplicationContext(String configLocations) throws BeansException {
        this(new String[]{configLocations});
    }

    protected ClasspathXmlApplicationContext(String[] configLocations) throws BeansException {
        this.configLocations = configLocations;
        refresh();
    }

    @Override
    protected String[] getConfigLocations() {
        return configLocations;
    }

}
